import java.util.Scanner;

    public class jisuanqi {
        public static void main(String[] args) {
            System.out.println("*********************************");
            System.out.println("*****微型计算器               ****");
            System.out.println("*****1、求和                 ****");
            System.out.println("*****2、求差                 ****");
            System.out.println("*****3、求积                 ****");
            System.out.println("*****4、求商                 ****");
            System.out.println("*****5、求余                 ****");
            System.out.println("*****Q、退出                 ****");
            System.out.println("*****请选择您想执行的操作       ****");
            System.out.println("*********************************");

            System.out.println("请选择你所要执行的计算模式： ");
            Scanner sc = new Scanner(System.in);
            String number = sc.next();
            switch(number){
                case "1":
                    System.out.println("请输入第一个数");
                    double num1 = sc.nextDouble();
                    System.out.println("请输入第二个数");
                    double num2 = sc.nextDouble();
                    System.out.println("求和结果为：" + (num1 + num2));
                    break;
                case "2":
                    System.out.println("请输入第一个数");
                    double num3 = sc.nextDouble();
                    System.out.println("请输入第二个数");
                    double num4 = sc.nextDouble();
                    System.out.println("求和结果为：" + (num3 - num4));
                    break;
                case "3":
                    System.out.println("请输入第一个数");
                    double num5 = sc.nextDouble();
                    System.out.println("请输入第二个数");
                    double num6 = sc.nextDouble();
                    System.out.println("求和结果为：" + (num5 * num6));
                    break;
                case "4":
                    System.out.println("请输入第一个数");
                    double num7 = sc.nextDouble();
                    System.out.println("请输入第二个数");
                    double num8 = sc.nextDouble();
                    System.out.println("求和结果为：" + (num7 / num8));
                    break;
                case "5":
                    System.out.println("请输入第一个数");
                    double num9 = sc.nextDouble();
                    System.out.println("请输入第二个数");
                    double num10 = sc.nextDouble();
                    System.out.println("求和结果为：" + (num9 % num10));
                    break;
                case "Q":
                    break;
            }
        }
    }

